import request from '../request/request'
import qs from 'qs'


// 侧边栏
export const SidebarApi = () => request.get('/api/Goods/getCatsTree')

// 查询商品详情
export const HomeShowGoodsApi = (params) => request.get('api/Home/getHomeShowGoods',{params})

// 轮播图
export const BannerApi = () => request.get('/api/Home/getHomeREC')

// 流行 精选 新款
export const GethomeApi = (params) => request.get(`/api/Home/getHomeShowGoods?${qs.stringify(params)}`)

// 商城页 商品列表
export const GoodsApi = (params) => request.get(`/api/Goods/getGoods?${qs.stringify(params)}`);

export const MGoodsApi = (params) => request.get(`/api/Goods/getGoods?goodsName=${params}`);

// 全网热搜
export const SearchHotApi = () => request.get('/api/Goods/getSearchHot');